package com.household.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.household.domain.entity.Orders;
import com.household.domain.vo.AdminOrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created By wanzhen
 * 2023. 2023/4/4. 20:04
 */
@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {
    IPage<AdminOrderVO> pageAdminOrderVO(Page<AdminOrderVO> page, @Param("sql")  String sql, @Param("has_delete") int isDelete);

    Orders selectByIdIgnoreDelete(String id);

    boolean manualDelete(@Param("id") String orderId, @Param("hasDelete") int hasDelete, @Param("deleteType") int deleteType);
    IPage<AdminOrderVO> pageUserOrderVO(Page<AdminOrderVO> page, @Param("sql") String selectSql, @Param("has_delete") int isDelete);
}
